package com.example.nacos.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ComprehensiveProj", path = "/redis")
public interface ConsumerService {
    @GetMapping("/get/{key}")
    ResponseEntity<Object> get(@PathVariable String key);

    @GetMapping("/send")
    ResponseEntity<Object> send(@RequestParam Object key, @RequestParam Object data);
}
